from django.urls import path
from rest_framework import routers
from system.project.view.project import ProjectViewSet, ProjectChannelViewSet
from system.project.view.channel import ChannelViewSet

system_url = routers.SimpleRouter()
system_url.register(r'channel', ChannelViewSet)
system_url.register(r'', ProjectViewSet)

urlpatterns = [
    path('tree', ProjectChannelViewSet.as_view()),
]
urlpatterns += system_url.urls
